import java.util.Scanner;

// day30 因子个数
public class Main2 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        while (in.hasNextInt()) {
            String s = in.nextLine();
            int n = Integer.parseInt(s);
            int count = 0;
            for(int i = 2;i <= Math.sqrt(n);i++){
                if(n % i == 0){
                    while(n % i == 0){
                        n /= i;
                    }
                    count++;
                }
            }
            if(n != 1){
                count++;
            }
            System.out.println(count);
        }
    }
}